<?php
/**
 * Created by PhpStorm.
 * User: My
 * Date: 2018/10/15
 * Time: 12:58
 */

namespace App\Models;

use Illuminate\Database\Eloquent\Builder;

class TestingChannel extends BaseModel
{
    protected $table = 'testing_channel';

    protected $fillable = ['id', 'code', 'name', 'status', 'desc', 'page_type', 'config', 'add_time'];

    protected function performInsert(Builder $query)
    {
        $this->add_time = time();
        $query->setModel($this);

        return parent::performInsert($query); // TODO: Change the autogenerated stub
    }

    public $timestamps = false;
}